#include "messages.h"
#include <set>
using namespace std;
#if defined(GENERIC)
ostream &RoutingMessage::Print(ostream &os) const
{
  os << "RoutingMessage()";
  return os;
}
#endif


#if defined(LINKSTATE)

ostream &RoutingMessage::Print(ostream &os) const
{
	os <<" Cost:"<< cost << " Age:" << age << " Src:" << src << " Dest:" << dest;

  return os;
}

RoutingMessage::RoutingMessage()
{
	set<Link> a;
}


RoutingMessage::RoutingMessage(const RoutingMessage &rhs):src(rhs.src), dest(rhs.dest), cost(rhs.cost), age(rhs.age)
{}

#endif


#if defined(DISTANCEVECTOR)

ostream &RoutingMessage::Print(ostream &os) const
{
	//src <<" Src:";
	//dist::printShortest();
  return os;
}

RoutingMessage::RoutingMessage()
{}


RoutingMessage::RoutingMessage(const RoutingMessage &rhs)
{
	src = rhs.src;
	this->bestHops = rhs.bestHops;
	this->costs = rhs.costs;
	}

#endif

